package com.qyhl.webtv.module_news.news.union.town.addmeeting;


import com.qyhl.webtv.commonlib.entity.UpTokenBean;

/**
 * Created by qyhl on 2018/3/6.
 */

public class AddMeetingPresenter implements AddMeetingContract.AddMeetingPresenter {
    private AddMeetingActivity mView;

    private AddMeetingModel mModel;

    public AddMeetingPresenter(AddMeetingActivity mView) {
        this.mView = mView;
        this.mModel = new AddMeetingModel(this);
    }

    @Override
    public void addMeeting(String streetId, String content, String type, String images) {
        mModel.addMeeting(streetId,content,type,images);
    }

    @Override
    public void addSuccess(String msg) {
        mView.addSuccess(msg);
    }

    @Override
    public void addError(String msg) {
        mView.addError(msg);
    }

    @Override
    public void getToken(boolean isUpload) {
        mModel.getToken(isUpload);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data,isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
        mView.getTokenError(isUpload);
    }
}
